Tamara\Wp\Plugin\Services\WCTamaraGateway D

Total Complexity 231
Dependencies 29
Dependents 2
Total lines 1,891
Lines of code 1,257
Logical lines of code 539
Comment lines 325
Methods 71
Properties 20

Methods 71

Method Rating Maintainability Complexity Lines of code
tamaraCheckoutSession()
C
33 22 93
initFormFields()
B
22
9 281
populateTamaraShippingAddress()
A
57 17 13
tamaraCancelOrder()
A
43 12 46
captureWcOrder()
A
42 8 53
validateRequiredFields()
A
56 10 15
getCountryPaymentTypes()
A
47 8 35
populateTamaraAddress()
A
53 9 20
verifyApiParams()
S
52 6 24
populateTamaraOrderItems()
S
48 5 33
tamaraCapturePayment()
S
57 6 15
populateTamaraRefundOrderItems()
S
48 5 30
renderTamaraCountryPaymentTypesHtml()
S
48 4 33
populateTamaraWebhook()
S
59 5 15
registerTamaraWebhook()
S
50 4 29
getTamaraCancelUrl()
S
53 4 27
getTamaraFailureUrl()
S
53 4 27
getTamaraSuccessUrl()
S
53 3 27
hideTamaraGatewayOnCheckout()
S
61 4 11
populateTamaraOrder()
S
50 3 25
deleteTamaraWebhook()
S
56 3 19
tamaraOrderReceivedText()
S
62 3 11
onSaveSettings()
S
53 2 25
initBaseAttributes()
S
57 2 16
createTamaraCheckoutSession()
S
58 2 16
getPaymentTypes()
S
70 3 5
setTamaraIconForPaymentGateway()
S
64 3 9
getWebhookId()
S
69 3 7
getPaymentTypeTitleMapping()
S
60 2 14
getTamaraWebhookUrl()
S
63 2 12
getTamaraIpnUrl()
S
63 2 12
initTamaraClient()
S
61 2 12
renderPaymentTypeDescription()
S
61 2 12
populateTamaraMerchantUrl()
S
57 1 18
getErrorMap()
S
56 1 18
initSettingAttributes()
S
56 1 17
processRewriteRules()
S
69 2 7
populateInstalmentsMaxLimit()
S
71 2 5
populateInstalmentsMinLimit()
S
71 2 5
populateMinLimit()
S
71 2 5
populateMaxLimit()
S
71 2 5
populateTamaraDefaultDescription()
S
65 2 9
isCartTotalValid()
S
71 2 5
isBeautifyMerchantUrlsEnabled()
S
78 2 3
getDefaultBillingCountryCode()
S
78 2 3
getStoreBaseCountryCode()
S
78 2 3
getPayByInstalmentsTitleAr()
S
78 2 3
getPayByInstalmentsTitle()
S
78 2 3
getPayByLaterTitleAr()
S
78 2 3
getPayByLaterTitle()
S
78 2 3
populateTamaraConsumer()
S
60 1 13
buildCountryPaymentTypesCacheKey()
S
71 1 6
getCurrencyToCountryMapping()
S
69 1 7
get_option_key()
S
81 1 3
getPaymentTypeMapping()
S
72 1 6
buildTamaraClient()
S
68 1 7
__construct()
S
78 1 4
initTamaraStatus()
S
63 1 9
updateThisSettingsToOptions()
S
66 1 10
raiseAdminErrorOnNonSelectedPaymentTypes()
S
73 1 6
raiseAdminError()
S
73 1 6
getShippingInfo()
S
69 1 7
populateTamaraBillingAddress()
S
76 1 4
process_payment()
S
80 1 3
processAdminOptions()
S
81 1 3
initSettings()
S
81 1 3
isLiveMode()
S
79 1 3
isSandboxMode()
S
79 1 3
isWebhookEnabled()
S
80 1 3
init()
S
62 1 10
refreshPaymentTypeCache()
S
77 1 4